define(['angular'], function(angular) {
    angular.module('routes', ['ngRoute'])
    .config(['$routeProvider', function($routeProvider) {
        $routeProvider
        .when('/', {
            templateUrl: 'tpls/step1.html',
            controller: 'step1Ctrl'
        })
        .when('/caseSrcLib/:flag', {//案件库
            templateUrl: 'tpls/caseSrcLib/caseSrcLib.html',
            controller: 'caseSrcLibCtrl'
        })
        .when('/caseProfile', {//案件概况
            templateUrl: 'tpls/caseSrcLib/caseProfile.html',
            controller: 'caseProfileCtrl'
        })
        .when('/diagRealize', {//案件诊断了解
            templateUrl: 'tpls/caseDiagnosis/diagRealize.html',
            controller: 'diagRealizeCtrl'
        })
        .when('/lawsuitRealize', {//垫资诉讼了解
            templateUrl: 'tpls/fundLawsuit/lawsuitRealize.html',
            controller: 'lawsuitRealizeCtrl'
        })
        .when('/caseRealize', {//案件执行了解
            templateUrl: 'tpls/caseExecute/caseRealize.html',
            controller: 'caseRealizeCtrl'
        })
        .when('/creditorRealize', {//债权收购了解
            templateUrl: 'tpls/creditorBuy/creditorRealize.html',
            controller: 'creditorRealizeCtrl'
        })
        .when('/sucApplyfpr', {//案件申请已提交
            templateUrl: 'tpls/caseSrcLib/sucApplyfpr.html',
            controller: 'sucApplyfprCtrl'
        })
        .when('/sucCaseSub', {//案件已提交
            templateUrl: 'tpls/caseSrcLib/sucCaseSub.html',
            controller: 'sucCaseSubCtrl'
        })
        .when('/fireflyLoan', {//免息贷款
            templateUrl: 'tpls/loan/fireflyLoan.html',
            controller: 'fireflyLoanCtrl'
        })
        .when('/fireLoanForm', {//填写推荐码
            templateUrl: 'tpls/loan/fireLoanForm.html',
            controller: 'fireLoanFormCtrl'
        }).when('/searchLs', {//查找律师
            templateUrl: 'tpls/loan/searchLs.html',
            controller: 'searchLsCtrl'
        }).when('/fireLoanTable/:flag', {//免息贷款表格
            templateUrl: 'tpls/loan/fireLoanTable.html',
            controller: 'fireLoanTableCtrl'
        })
        .when('/noticeUpload', {//上传受理通知书
            templateUrl: 'tpls/loan/noticeUpload.html',
            controller: 'noticeUploadCtrl'
        })
        .when('/sucLoanApply', {//贷款成功提交页面
            templateUrl: 'tpls/loan/sucLoanApply.html',
            controller: 'sucLoanApplyCtrl'
        })
        .when('/mine', {//我的(未登录)
            templateUrl: 'tpls/mine.html',
            controller: 'mineCtrl'
        })
         .when('/minePt', {//普通用户(登录后)
            templateUrl: 'tpls/minePt.html',
            controller: 'minePtCtrl'
        })
        .when('/mineLs', {//律师用户(登录后)
            templateUrl: 'tpls/mineLs.html',
            controller: 'mineLsCtrl'
        })
        .when('/register', {//注册
            templateUrl: 'tpls/user/register/register.html',
            controller: 'registerCtrl'
        })
        .when('/setPwdFirst', {//第一次设置密码
            templateUrl: 'tpls/user/register/setPwdFirst.html',
            controller: 'setPwdFirstCtrl'
        })
        .when('/setPwdSecond', {//第二次设置密码
            templateUrl: 'tpls/user/register/setPwdSecond.html',
            controller: 'setPwdSecondCtrl'
        }).when('/regSuccess', {//注册成功
            templateUrl: 'tpls/user/register/regSuccess.html',
            controller: 'regSuccessCtrl'
        })
        .when('/completeData', {//完善资料
            templateUrl: 'tpls/user/completeData.html',
            controller: 'completeDataCtrl'
        }).when('/completePtData', {//完善资料(普通)
            templateUrl: 'tpls/user/completePtData.html',
            controller: 'completePtDataCtrl'
        }).when('/completeLsData/:flag', {//完善资料(律师)
            templateUrl: 'tpls/user/completeLsData.html',
            controller: 'completeLsDataCtrl'
        })
        .when('/login', {//登录
            templateUrl: 'tpls/user/login.html',
            controller: 'loginCtrl'
        })
        .when('/authCodeLogin', {//验证码登录
            templateUrl: 'tpls/user/authCodeLogin.html',
            controller: 'authCodeLoginCtrl'
        })
        .when('/changeMobile', {//更改账号
            templateUrl: 'tpls/user/changeMobile/changeMobile.html',
            controller: 'changeMobileCtrl'
        }).when('/changeMobileSuc', {//更改账号成功
            templateUrl: 'tpls/user/changeMobile/changeMobileSuc.html',
            controller: 'changeMobileSucCtrl'
        })
        .when('/findPwd', {//忘记密码
            templateUrl: 'tpls/user/findPwd/findPwd.html',
            controller: 'findPwdCtrl'
        }).when('/setFindPwdFirst', {//忘记密码(设置第一次输密码)
            templateUrl: 'tpls/user/findPwd/setFindPwdFirst.html',
            controller: 'setFindPwdFirstCtrl'
        }).when('/setFindPwdSecond', {//忘记密码(设置第二次输密码)
            templateUrl: 'tpls/user/findPwd/setFindPwdSecond.html',
            controller: 'setFindPwdSecondCtrl'
        }).when('/findPwdSuccess', {//忘记密码(设置成功)
            templateUrl: 'tpls/user/findPwd/findPwdSuccess.html',
            controller: 'findPwdSuccessCtrl'
        })
        .when('/modifyPwd', {//重置密码
            templateUrl: 'tpls/user/resetPwd/modifyPwd.html',
            controller: 'modifyPwdCtrl'
        }).when('/resetPwdFirst', {//重置密码第一次
            templateUrl: 'tpls/user/resetPwd/resetPwdFirst.html',
            controller: 'resetPwdFirstCtrl'
        }).when('/resetPwdSecond', {//重置密码第二次
            templateUrl: 'tpls/user/resetPwd/resetPwdSecond.html',
            controller: 'resetPwdSecondCtrl'
        }).when('/modifyPwdSuccess', {//重置密码成功
            templateUrl: 'tpls/user/resetPwd/modifyPwdSuccess.html',
            controller: 'modifyPwdSuccessCtrl'
        })
        .when('/myCollection', {//我的收藏
            templateUrl: 'tpls/user/myCollection.html',
            controller: 'myCollectionCtrl'
        })
        .when('/myQrCode', {//我的二维码
            templateUrl: 'tpls/user/myQrCode.html',
            controller: 'myQrCodeCtrl'
        })
        .when('/myIncome', {//我的收益
            templateUrl: 'tpls/user/myIncome.html',
            controller: 'myIncomeCtrl'
        })
        .when('/applyAgent', {//代理商申请
            templateUrl: 'tpls/user/applyAgent.html',
            controller: 'applyAgentCtrl'
        })
        .when('/personalInfo', {//个人信息
            templateUrl: 'tpls/user/personalInfo.html',
            controller: 'personalInfoCtrl'
        })
        .when('/personalLsInfo', {//律师个人信息
            templateUrl: 'tpls/user/personalLsInfo.html',
            controller: 'personalLsInfoCtrl'
        })
        .when('/personalPtInfo', {//普通个人信息
            templateUrl: 'tpls/user/personalPtInfo.html',
            controller: 'personalPtInfoCtrl'
        })
        .when('/myLoanList/:flag', {//我的贷款列表
            templateUrl: 'tpls/user/myLoan/myLoanList.html',
            controller: 'myLoanListCtrl'
        })
        .when('/loanFail/:flag', {//贷款申请失败
            templateUrl: 'tpls/user/myLoan/loanFail.html',
            controller: 'loanFailCtrl'
        })
         .when('/loanRepaying/:flag', {//我的贷款-还款中
            templateUrl: 'tpls/user/myLoan/loanRepaying.html',
            controller: 'loanRepayingCtrl'
        })
        .when('/loanWaitCheck/:flag', {//我的贷款-待审核
            templateUrl: 'tpls/user/myLoan/loanWaitCheck.html',
            controller: 'loanWaitCheckCtrl'
        })
        .when('/myLoanOutline/:flag', {//贷款概要
            templateUrl: 'tpls/user/myLoan/loanOutline.html',
            controller: 'loanOutlineCtrl'
        })
        .when('/repayDetail/:flag', {//还款中明细(我要还款)
            templateUrl: 'tpls/user/myLoan/repayDetail.html',
            controller: 'repayDetailCtrl'
        })
        .when('/loanRepayDetail/:flag', {//还款中明细
            templateUrl: 'tpls/user/myLoan/loanRepayDetail.html',
            controller: 'loanRepayDetailCtrl'
        })
        .when('/myIssueList/:flag', {//我的发布
            templateUrl: 'tpls/user/myIssue/myIssueList.html',
            controller: 'myIssueListCtrl'
        })
        .when('/issueFailList/:flag', {//案件发布失败列表
            templateUrl: 'tpls/user/myIssue/issueFailList.html',
            controller: 'issueFailListCtrl'
        })
        .when('/issueFailDetail/:flag', {//案件发布失败详情
            templateUrl: 'tpls/user/myIssue/issueFailDetail.html',
            controller: 'issueFailDetailCtrl'
        })
         .when('/issueCheck/:flag', {//案件发布待审核
            templateUrl: 'tpls/user/myIssue/issueCheck.html',
            controller: 'issueCheckCtrl'
        }).when('/issueSucDetail/:flag', {//案件发布已通过
            templateUrl: 'tpls/user/myIssue/issueSucDetail.html',
            controller: 'issueSucDetailCtrl'
        }).when('/issueSucDetailNo/:flag', {//案件发布已通过未修改
            templateUrl: 'tpls/user/myIssue/issueSucDetailNo.html',
            controller: 'issueSucDetailNoCtrl'
        })
        .when('/myCaseList/:flag', {//我的案件列表
            templateUrl: 'tpls/user/myCase/myCaseList.html',
            controller: 'myCaseListCtrl'
        })
        .when('/caseApplying/:flag', {//我的案件申请中
            templateUrl: 'tpls/user/myCase/caseApplying.html',
            controller: 'caseApplyingCtrl'
        })
        .when('/caseView/:flag', {//查看我的案件
            templateUrl: 'tpls/user/myCase/caseView.html',
            controller: 'caseViewCtrl'
        })
        .when('/applyCaseDetail/:orderId/:caseId', {
            templateUrl: 'tpls/user/myCase/applyCaseDetail.html',
            controller: 'applyCaseDetailCtrl'
        })
        .when('/recommendList/:flag', {//我的推荐列表
            templateUrl: 'tpls/user/myRecommend/recommendList.html',
            controller: 'recommendListCtrl'
        })
        .when('/myRecOverdue/:flag', {//我的推荐-已逾期
            templateUrl: 'tpls/user/myRecommend/myRecOverdue.html',
            controller: 'myRecOverdueCtrl'
        })
        .when('/myRecRepaying/:flag', {//我的推荐-还款中
            templateUrl: 'tpls/user/myRecommend/myRecRepaying.html',
            controller: 'myRecRepayingCtrl'
        })
        .when('/sucRepaying', {//还款已受理
            templateUrl: 'tpls/user/myLoan/sucRepaying.html',
            controller: 'sucRepayingCtrl'
        })
        .when('/checkLoan/:flag', {//审核贷款
            templateUrl: 'tpls/user/myRecommend/checkLoan.html',
            controller: 'checkLoanCtrl'
        })
        .when('/loanOutline/:flag', {//贷款概要
            templateUrl: 'tpls/user/myRecommend/loanOutline.html',
            controller: 'loanRecOutlineCtrl'
        })
        .when('/agreeLoan', {//同意贷款
            templateUrl: 'tpls/user/myRecommend/agreeLoan.html',
            controller: 'agreeLoanCtrl'
        })
        .when('/myRecRepayDetail/:flag', {//我的推荐还款明细
            templateUrl: 'tpls/user/myRecommend/myRecRepayDetail.html',
            controller: 'myRecRepayDetailCtrl'
        })
        .when('/refuseLoan', {//拒绝贷款
            templateUrl: 'tpls/user/myRecommend/refuseLoan.html',
            controller: 'refuseLoanCtrl'
        })
        .when('/msgCenter', {//消息显示
            templateUrl: 'tpls/user/msgCenter.html',
            controller: 'msgCenterCtrl'
        })
        .when('/msgDetail/:flag', {//消息详情
            templateUrl: 'tpls/user/msgDetail.html',
            controller: 'msgDetailCtrl'
        })
        .when('/aboutUs', {//关于我们
            templateUrl: 'tpls/user/aboutUs.html',
            controller: 'aboutUsCtrl'
        })
        .when('/helpUs', {//帮助
            templateUrl: 'tpls/user/helpUs.html',
            controller: 'helpUsCtrl'
        })
        .when('/fireFlyprotocol', {//协议
            templateUrl: 'tpls/user/fireFlyprotocol.html',
            controller: 'fireFlyprotocolCtrl'
        })
        .when('/brightness', {//律师等级亮度说明
            templateUrl: 'tpls/user/brightness.html',
            controller: 'brightnessCtrl'
        })
        .when('/realRiskInvest', {//了解风险投
            templateUrl: 'tpls/riskInvest/realRiskInvest.html',
            controller: 'realRiskInvestCtrl'
        }).when('/applySurvey/:flag', {//问卷调查
            templateUrl: 'tpls/riskInvest/applySurvey.html',
            controller: 'applySurveyCtrl'
        }).when('/applyRiskInvest', {//风险投申请
            templateUrl: 'tpls/riskInvest/applyRiskInvest.html',
            controller: 'applyRiskInvestCtrl'
        }).when('/applyRisk', {//风险投申请
            templateUrl: 'tpls/riskInvest/applyRisk.html',
            controller: 'applyRiskCtrl'
        }).when('/queryInvest', {//查询风险投
            templateUrl: 'tpls/riskInvest/queryInvest.html',
            controller: 'queryInvestCtrl'
        }).when('/investDetail', {//风险投详情
            templateUrl: 'tpls/riskInvest/investDetail.html',
            controller: 'investDetailCtrl'
        }).when('/realNpl', {//了解不良资产
            templateUrl: 'tpls/nonPerforLoan/realNpl.html',
            controller: 'realNplCtrl'
        }).when('/applyNpl', {//申请不良资产
            templateUrl: 'tpls/nonPerforLoan/applyNpl.html',
            controller: 'applyNplCtrl'
        }).when('/applyNplSec', {//申请不良资产二
            templateUrl: 'tpls/nonPerforLoan/applyNplSec.html',
            controller: 'applyNplSecCtrl'
        }).when('/applyNplThird', {//申请不良资产三
            templateUrl: 'tpls/nonPerforLoan/applyNplThird.html',
            controller: 'applyNplThirdCtrl'
        }).when('/applyNplFourth', {//申请不良资产四
            templateUrl: 'tpls/nonPerforLoan/applyNplFourth.html',
            controller: 'applyNplFourthCtrl'
        }).when('/queryNpl', {//查询不良资产
            templateUrl: 'tpls/nonPerforLoan/queryNpl.html',
            controller: 'queryNplCtrl'
        }).when('/nplDetail', {//不良资产详情
            templateUrl: 'tpls/nonPerforLoan/nplDetail.html',
            controller: 'nplDetailCtrl'
        }).when('/loanSurvey', {//免息贷问卷调查
            templateUrl: 'tpls/user/myRecommend/loanSurvey.html',
            controller: 'loanSurveyCtrl'
        }).when('/accountInfo', {//设置用户信息
            templateUrl: 'tpls/user/accountInfo/accountInfo.html',
            controller: 'accountInfoCtrl'
        }).when('/changeName', {//设置用户信息
            templateUrl: 'tpls/user/accountInfo/changeName.html',
            controller: 'changeNameCtrl'
        }).when('/setLoginPwd', {//设置登录密码
            templateUrl: 'tpls/user/setPwd/setLoginPwd.html',
            controller: 'setLoginPwdCtrl'
        }).when('/changePwdByOldPwd', {//修改登录密码(新旧密码方式)
            templateUrl: 'tpls/user/setPwd/changePwdByOldPwd.html',
            controller: 'changePwdByOldPwdCtrl'
        }).when('/changePwdByMobile', {//修改登录密码(手机验证码)
            templateUrl: 'tpls/user/setPwd/changePwdByMobile.html',
            controller: 'changePwdByMobileCtrl'
        }).when('/changeNo', {//换绑手机
            templateUrl: 'tpls/user/changeNo/changeNo.html',
            controller: 'changeNoCtrl'
        }).when('/changeNo1', {//换绑手机
            templateUrl: 'tpls/user/changeNo/changeNo1.html',
            controller: 'changeNo1Ctrl'
        }).when('/messageIndex', {//消息首页
            templateUrl: 'tpls/user/message/messageIndex.html',
            controller: 'messageIndexCtrl'
        }).when('/messageList/:flag', {//消息列表
            templateUrl: 'tpls/user/message/messageList.html',
            controller: 'messageListCtrl'
        });
    }]);
});